package com.imooc.project.dao;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.imooc.project.entity.Account;
import com.imooc.project.entity.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.imooc.project.mapper.MyMapper;
import org.apache.ibatis.annotations.Param;

/**
 * <p>
 * 角色表 Mapper 接口
 * </p>
 *
 * @author jobob
 * @since 2021-05-20
 */
public interface RoleMapper extends MyMapper<Role> {

    /**
     * 分页查询账号
     *
     * @param page
     * @param wrapper
     * @return
     */
    IPage<Role> rolePage(Page<Role> page, @Param(Constants.WRAPPER) Wrapper<Role> wrapper);


}
